package com.itheima.mapper;

import com.itheima.domain.StudentQueryParam;
import com.itheima.domain.pojo.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {

    List<Student> selectStudents(StudentQueryParam param);

    void deleteByIds(List<Integer> ids);

    void insertStudent(Student student);

    Student selectById(Integer id);

    void updateById(Student student);

    void UpdateViolationScore(Integer id, Integer score);
    //学生学历信息统计
    List<Map> getStudentDegreeData();
    //学生班级信息统计
    List<Map<String, Object>> getStudentCountData();
}
